<?php

class PreferenciaDao extends Model {

    public function injectDependencies() {

    }

    public function findAll() {
        $Usuario = Dracosys::getLoggedUser();
        $tMysqli = MyDb::getInstance();
        $tMysqli->getConnection(MYSQL_HOST, MYSQL_USER,MYSQL_PASS, MYSQL_DB);
        $StSql = TQuery::getSqlPreferencesLoad($Usuario->getIDUsuario());
        $tQuery = $tMysqli->exec($StSql);
        $ArFields = array();
        while( $tField = mysqli_fetch_field($tQuery) ) {
            $ArFields[] = $tField->name;
        }
        $tMysqli->close();
        return $ArFields;
    }

}

?>
